<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeBehind="PendingDownloads.aspx.cs" Inherits="MusicmanWeb.USER.PendingDownloads" Title="Musicman Levi9 | Pending downloads overview" %>
<%@ Register Namespace="MusicmanWeb.Custom" TagPrefix="x" Assembly="MusicmanWeb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
<div class="page" id="home">
   <x:MyGridView runat="server" ID="PendingDownloadsGV" 
        AutoGenerateCheckBoxColumn="True" 
        AutoGenerateColumns="false"
        DataSourceID="ObjectDataSource1" 
        DataKeyNames="FileID"
        AllowPaging="True" 
        PageSize="15" 
        CheckBoxColumnIndex="5" 
        backcolor="#606060" 
        visible="true">
        <Columns>
         <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" ItemStyle-HorizontalAlign="Left" />
         <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
        </Columns>
        <HeaderStyle BackColor="#333333"  ForeColor="#DBB94F"/>
        <AlternatingRowStyle backcolor="#777777" />
        <SelectedRowStyle BackColor="#CCCCCC" ForeColor="black"/>
</x:MyGridView>

        <br />
        <asp:LinkButton ID="RemoveButton" runat="server" CausesValidation="True" CommandName="Update"
        Text="Remove from downloads" OnCommand="RemoveButton_Command" ></asp:LinkButton>
        <a href="DOWNLOAD/Musicman.Client.application" >Start downloading</a>
        <br />
        <br />
</div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPendingDownloads" TypeName="Musicman.Business.DataManager" EnableCaching="false">
        <SelectParameters>
            <asp:SessionParameter Name="userID" SessionField="UserID" Type="Int64" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
